package com.hcc.gateway.domain.vo;

import lombok.Data;

import java.util.Collections;
import java.util.List;

/**
 * ApiReqParamPo
 *
 * @author shengjun.hu
 * @date 2021/12/29
 */
@Data
public class ApiParamMappingVo {

    private Long id;
    private Long apiConfig;
    private Long parentId;
    private String originalName;
    private String targetName;
    private String paramType;
    private Boolean required;
    private String desc;
    private String example;
    private String type;

    private List<ApiParamMappingVo> children = Collections.emptyList();

    public String getUid() {
        return id == null ? null : id.toString();
    }

    public String getPid() {
        return parentId == null ? null : parentId.toString();
    }

}
